import request from '@/utils/axios';

const api_name = '/admin/product/brand'

// 分页查询
export function getBrandPageListApi(data: any) {
    return request({
        url: api_name + '/pageList',
        method: 'post',
        data
    })
}


// 添加
export function addBrandApi(data: any) {
    return request({
        url: api_name + '/save',
        method: 'post',
        data
    })
}

// 修改
export function updateBrandApi(data: any) {
    return request({
        url: api_name + '/update',
        method: 'put',
        data
    })
}

// 删除
export function removeBrandApi(id: number) {
    return request({
        url: api_name + '/delById/' + id,
        method: 'delete'
    })
}
